package com.sti.framework.models.User.data;

import com.baomidou.mybatisplus.annotation.TableName;
import com.sti.framework.core.data.AbstractAuditingEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 日志管理
 *
 * 登陆日志、操作日志
 *
 * @author AutoApi
 */

@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "user_logs", autoResultMap = true)
@ApiModel(value = "user_logs", description = "登陆日志、操作日志")
public class Logs extends AbstractAuditingEntity {

    
		/**
		 * 用户id
		 */
		@ApiModelProperty(value = "用户id", required = true, example = "这里是用户id")
		@NotNull(message = "请输入用户id")
		private Long userid;

		/**
		 * 用户名称
		 */
		@ApiModelProperty(value = "用户名称", required = true, example = "这里是用户名称")
		@NotBlank(message = "请输入用户名称")
		@Size(min = 1,max = 50,message = "用户名称1-50位")
		private String username;

		/**
		 * 路径标签
		 */
		@ApiModelProperty(value = "路径标签", required = true, example = "这里是路径标签")
		@NotBlank(message = "请输入路径标签")
		@Size(min = 1,max = 200,message = "路径标签1-200位")
		private String tag;

		/**
		 * 功能名称
		 */
		@ApiModelProperty(value = "功能名称", required = true, example = "这里是功能名称")
		@NotBlank(message = "请输入功能名称")
		@Size(min = 1,max = 200,message = "功能名称1-200位")
		private String table_name;

		/**
		 * 动作
		 */
		@ApiModelProperty(value = "动作", required = true, example = "这里是动作")
		@NotBlank(message = "请输入动作")
		@Size(min = 1,max = 50,message = "动作名称1-50位")
		private String action;

		/**
		 * body参数
		 */
		@ApiModelProperty(value = "body参数", required = true, example = "这里是body参数")
		@Size(message = "body参数名称1-200位")
		private String body;

		/**
		 * queryString参数
		 */
		@ApiModelProperty(value = "queryString参数", required = true, example = "这里是queryString参数")
		@Size(max = 200,message = "queryString参数名称1-200位")
		private String queryString;
}
